<?
	$loged = $_SESSION["loged"];
	$user = $_SESSION["user"];
	if(!$loged || !isset($user)){
		header("Location: index.php");
		exit();
	}
?>